package com.xian.operator;

public class OperatorTest2 {
    public static void main(String[] args) {
        //需求：拆分三位数

        int data = 583;


        //个位
        int a = data % 10;
        System.out.println(a);

        //十位
        int b = data / 10 % 10;
        System.out.println(b);

        //百位
        int c = data / 100;
        System.out.println(c);


    }
}
